package com.yuezhu.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;

import com.yuezhu.global.BaseFragment;
import com.yuezhu.R;
import com.yuezhu.constomview.AssetView;
import com.yuezhu.constomview.TitleView;
import com.yuezhu.util.MyToast;

public class AssetFragment extends BaseFragment implements View.OnClickListener,AdapterView.OnItemClickListener{
    private TitleView titleView;
    AssetView assetview;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_asset, container, false);
        initview(view);
        return view;
    }
    @Override
    public void initview(View view) {
        titleView = (TitleView) view.findViewById(R.id.title);
        titleView.initTitleContent("","租客","",null).setStaus(TitleView.MID);
        assetview = (AssetView) view.findViewById(R.id.assetview);
        assetview.setAssetViewListener(this,this);
    }

    @Override
    public void setLiseners() {

    }

    @Override
    public void onClick(View view) {
        Object i =view.getTag();
        MyToast.showDefaltToast(i+"");
    }

    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
        MyToast.showDefaltToast(i+"");
    }
}
